package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.pojo.DtsGoodsProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsProductServiceImpl implements GoodsProductService{
    @Autowired
    private DtsGoodsProductMapper productMapper;

    @Override
    public int countGoodsProduct() {
        QueryWrapper<DtsGoodsProduct> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("deleted",false);
        Integer count = productMapper.selectCount(queryWrapper);

        return count;
    }
}
